package com.hsjk.szwj.module.train.controller.app.vo.question;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.hsjk.szwj.module.train.dal.dataobject.question.QuestionAnswerItemDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/31 00:02
 **/
@Data
public class AppQuestionListRespVO {
    private Long id;

    @Schema(description = "题目类型", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer questionType;

    @Schema(description = "题目标题", requiredMode = Schema.RequiredMode.REQUIRED)
    private String questionTitle;

    @Schema(description = "题目图片", requiredMode = Schema.RequiredMode.REQUIRED)
    private String questionPic;

    @Schema(description = "题目选项", requiredMode = Schema.RequiredMode.REQUIRED)
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<Integer> questionOptionIndex;

    @Schema(description = "题目答案", requiredMode = Schema.RequiredMode.REQUIRED)
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<QuestionAnswerItemDO> questionAnswer;

    @Schema(description = "题目备注", requiredMode = Schema.RequiredMode.REQUIRED)
    private String remark;

    @Schema(description = "车型", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer carType;

    @Schema(description = "科目", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer subject;

    @Schema(description = "章节编号", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long chapterId;

    @Schema(description = "官方解释", requiredMode = Schema.RequiredMode.REQUIRED)
    private String officialGuide;

    @Schema(description = "技巧文本", requiredMode = Schema.RequiredMode.REQUIRED)
    private String skillText;

    @Schema(description = "技巧图片", requiredMode = Schema.RequiredMode.REQUIRED)
    private String skillImgs;

}
